package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Service
public interface EmpService {

    // PageBean page(@Param("page") Integer page,
    //               @Param("pageSize") Integer pageSize,
    //               @Param("name") String name, @Param("gender") Short gender,
    //               @Param("begin") LocalDate begin,
    //               @Param("end") LocalDate end);
    PageBean page(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);

    void deleteEmp(List<Integer> ids);

    void addEmp(Emp emp);


    Emp getById(Integer id);


    void updateEmp(Emp emp);

    Emp loginEmp(Emp emp);
}
